gl: Add context options
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 28 Jan 2015 09:34:16 +0000 (09:34 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Feb 2015 19:10:05 +0000 (19:10 +0000)
commitfa9005229983e8bd0f582ba0b4e0e8f1d6a5e061
tree98b23b8381968d0edd0d207be7aa8df7d60910a8
parent22e6f37c9c00ca3e97fbd454774a178473a0c93e
gl: Add context options

Users of the GdkGLContext API should be allowed to set properties on the
shim GdkGLContext instance prior to realization, so that the
backend-specific implementation can use the value of those properties
when creating the windowing system specific resources.

The main three options are:

 • a major/minor version tuple, to request a specific GL version
 • a debug bit, to request a "debug context", which provides additional
   validation and run time checking
 • a forward compatibility bit, to request a context that does not
   have deprecated functionality

See also:
 - https://www.opengl.org/registry/specs/ARB/glx_create_context.txt

https://bugzilla.gnome.org/show_bug.cgi?id=741946
gdk/gdkglcontext.c
gdk/gdkglcontext.h
gdk/gdkglcontextprivate.h